package com.yike.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.yike.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.yike.common.api.Update;

/**
 * 订单退款详情表
 *
 * @author Sakura
 * @since 2024-09-04
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_refund_detail")
@ApiModel(value = "RefundDetail对象")
public class RefundDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("退款订单ID")
    private Long refundId;

    @ApiModelProperty("商品ID")
    private Long goodsId;

    @NotBlank(message = "条码不能为空")
    @ApiModelProperty("条码")
    private String barcode;

    @ApiModelProperty("商品图片")
    private String image;

    @ApiModelProperty("进货单价")
    private BigDecimal buyPrice;

    @ApiModelProperty("销售单价")
    private BigDecimal sellPrice;

    @ApiModelProperty("退单数量")
    private Integer number;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("分类名称")
    private String categoryName;

    @ApiModelProperty("商品规格")
    private String specification;

}
